/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

/**
 *
 * @author Alexey Bahrushin
 */
public class MoodleAssignmentConfig {
    private long id;//assign_plugin_config id
    private int assignment;//assignment id
    private String plugin;//plugin
    private String subtype;//subtype
    private String name;//name
    private String value;//value

    /**
     * Constructor with MINIMAL set of paramenters for new category creation through Web service.
     */
    public MoodleAssignmentConfig(long id, String name) {
        this.id = id;
        this.name = name;
    }

    /**
     * Constructor for the objects, returned by createMoodleAssignmentConfig method.
     */
    public MoodleAssignmentConfig(long id, int assignment, String plugin, String subtype, String name, String value) {
        this.id = id;
        this.assignment = assignment;
        this.plugin = plugin;
        this.subtype = subtype;
        this.name = name;
        this.value = value;
    }

    /**
     * @return the id
     */
    public long getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(long id) {
        this.id = id;
    }

    /**
     * @return the assignment
     */
    public int getAssignment() {
        return assignment;
    }

    /**
     * @param assignment the assignment to set
     */
    public void setAssignment(int assignment) {
        this.assignment = assignment;
    }

    /**
     * @return the plugin
     */
    public String getPlugin() {
        return plugin;
    }

    /**
     * @param plugin the plugin to set
     */
    public void setPlugin(String plugin) {
        this.plugin = plugin;
    }

    /**
     * @return the subtype
     */
    public String getSubtype() {
        return subtype;
    }

    /**
     * @param subtype the subtype to set
     */
    public void setSubtype(String subtype) {
        this.subtype = subtype;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the value
     */
    public String getValue() {
        return value;
    }

    /**
     * @param value the value to set
     */
    public void setValue(String value) {
        this.value = value;
    }
}
